package com.persagy.ems.pojo.quartz;

import java.util.Date;

import com.persagy.core.annotation.Column;
import com.persagy.core.annotation.Dimension;
import com.persagy.core.annotation.Entity;
import com.persagy.core.annotation.Id;
import com.persagy.core.annotation.Table;
import com.persagy.core.enumeration.Schema;
import com.persagy.core.mvc.pojo.BusinessObject;

@Dimension
@Entity(name = "JobErrorLog")
@Table(name = "t_job_error_log", comment = "quartz定时任务错误日志", schema = Schema.NONE)
public class JobErrorLog extends BusinessObject {

	private static final long serialVersionUID = -4362045481168454098L;

	@Id
	@Column(order = 0, name = "c_id", length = 36, nullable = false, comment = "id")
	private String id;
	@Column(order = 1, name = "c_job_name", length = 36, nullable = false, comment = "任务名称")
	private String jobName;
	@Column(order = 2, name = "c_job_params", length = 36, nullable = false, comment = "任务运行参数")
	private String jobParams;
	@Column(order = 7, name = "c_error", length = 200, nullable = true, comment = "错误信息")
	private String error;
	@Column(order = 7, name = "c_time", length = 36, nullable = true, comment = "出错时间")
	private Date time;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getJobName() {
		return jobName;
	}

	public void setJobName(String jobName) {
		this.jobName = jobName;
	}

	public String getJobParams() {
		return jobParams;
	}

	public void setJobParams(String jobParams) {
		this.jobParams = jobParams;
	}

	public String getError() {
		return error;
	}

	public void setError(String error) {
		this.error = error;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

}
